[C#] dotNet 4.0 Clipboard bug?

Posted by Nayan on Stack Overflow See other posts from Stack Overflow or by Nayan
Published on 2010-05-04T15:11:36Z Indexed on 2010/05/04 21:08 UTC
Read the original article Hit count: 306

Filed under:
|
|

Try this:
1. Create an app in VS Express Edition 2010 (.NET 4.0).
2. Put these lines in the code wherever u like -

        string text = Clipboard.GetText();
        MessageBox.Show(text);

3. Copy some ANSI text (for simplicity) from notepad.
4. Run the app and see the result.

I see "Clipboard.GetText()" (without quotes) instead of actual data!

Can anyone confirm if this happens in Pro/Ultimate editions too?

© Stack Overflow or respective owner

Related posts about c#4.0

Related posts about c#